﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001377 RID: 4983
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakePromotionRewardScRsp : IMessage<TakePromotionRewardScRsp>, IMessage, IEquatable<TakePromotionRewardScRsp>, IDeepCloneable<TakePromotionRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003ED3 RID: 16083
		// (get) Token: 0x0600DF16 RID: 57110 RVA: 0x00254B19 File Offset: 0x00252D19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakePromotionRewardScRsp> Parser
		{
			get
			{
				return TakePromotionRewardScRsp._parser;
			}
		}

		// Token: 0x17003ED4 RID: 16084
		// (get) Token: 0x0600DF17 RID: 57111 RVA: 0x00254B20 File Offset: 0x00252D20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakePromotionRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003ED5 RID: 16085
		// (get) Token: 0x0600DF18 RID: 57112 RVA: 0x00254B32 File Offset: 0x00252D32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakePromotionRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DF19 RID: 57113 RVA: 0x00254B39 File Offset: 0x00252D39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardScRsp()
		{
		}

		// Token: 0x0600DF1A RID: 57114 RVA: 0x00254B44 File Offset: 0x00252D44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardScRsp(TakePromotionRewardScRsp other) : this()
		{
			this.rewardList_ = ((other.rewardList_ != null) ? other.rewardList_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DF1B RID: 57115 RVA: 0x00254B90 File Offset: 0x00252D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePromotionRewardScRsp Clone()
		{
			return new TakePromotionRewardScRsp(this);
		}

		// Token: 0x17003ED6 RID: 16086
		// (get) Token: 0x0600DF1C RID: 57116 RVA: 0x00254B98 File Offset: 0x00252D98
		// (set) Token: 0x0600DF1D RID: 57117 RVA: 0x00254BA0 File Offset: 0x00252DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList RewardList
		{
			get
			{
				return this.rewardList_;
			}
			set
			{
				this.rewardList_ = value;
			}
		}

		// Token: 0x17003ED7 RID: 16087
		// (get) Token: 0x0600DF1E RID: 57118 RVA: 0x00254BA9 File Offset: 0x00252DA9
		// (set) Token: 0x0600DF1F RID: 57119 RVA: 0x00254BB1 File Offset: 0x00252DB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DF20 RID: 57120 RVA: 0x00254BBA File Offset: 0x00252DBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakePromotionRewardScRsp);
		}

		// Token: 0x0600DF21 RID: 57121 RVA: 0x00254BC8 File Offset: 0x00252DC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakePromotionRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RewardList, other.RewardList) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DF22 RID: 57122 RVA: 0x00254C18 File Offset: 0x00252E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rewardList_ != null)
			{
				num ^= this.RewardList.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DF23 RID: 57123 RVA: 0x00254C6D File Offset: 0x00252E6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DF24 RID: 57124 RVA: 0x00254C75 File Offset: 0x00252E75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DF25 RID: 57125 RVA: 0x00254C80 File Offset: 0x00252E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rewardList_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.RewardList);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DF26 RID: 57126 RVA: 0x00254CDC File Offset: 0x00252EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rewardList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RewardList);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DF27 RID: 57127 RVA: 0x00254D34 File Offset: 0x00252F34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakePromotionRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rewardList_ != null)
			{
				if (this.rewardList_ == null)
				{
					this.RewardList = new ItemList();
				}
				this.RewardList.MergeFrom(other.RewardList);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DF28 RID: 57128 RVA: 0x00254D9C File Offset: 0x00252F9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DF29 RID: 57129 RVA: 0x00254DA8 File Offset: 0x00252FA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rewardList_ == null)
					{
						this.RewardList = new ItemList();
					}
					input.ReadMessage(this.RewardList);
				}
			}
		}

		// Token: 0x04005866 RID: 22630
		private static readonly MessageParser<TakePromotionRewardScRsp> _parser = new MessageParser<TakePromotionRewardScRsp>(() => new TakePromotionRewardScRsp());

		// Token: 0x04005867 RID: 22631
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005868 RID: 22632
		public const int RewardListFieldNumber = 5;

		// Token: 0x04005869 RID: 22633
		private ItemList rewardList_;

		// Token: 0x0400586A RID: 22634
		public const int RetcodeFieldNumber = 13;

		// Token: 0x0400586B RID: 22635
		private uint retcode_;
	}
}
